package com.atguigu.srb.core;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@EnableAsync //启用异步
@EnableSwagger2 //启用swagger
@EnableTransactionManagement
@ComponentScan(basePackages = "com.atguigu.srb")
@MapperScan(basePackages = "com.atguigu.srb.*.mapper")
public class SrbCoreApplication {
    public static void main(String[] args) {
        SpringApplication.run(SrbCoreApplication.class,args);
    }
}
